package array;

import java.util.ArrayList;

//反转
public class Reverse {
     public static void main(String[] args) throws Exception {

         String[] arr = {"one","two","three","five","six"};
         int len = arr.length;
         System.out.println(len);
        //  for (int i = 0; i < arr.length; i++) {
        //      System.out.println(arr[i]);
        //  }

         ArrayList arrayList = new ArrayList<>();
         
         for(int i=(len-1);i>=0;i--){
            arrayList.add(arr[i]);
         }
         System.out.println(arrayList);
         
     }
    
}
